var status = -1;

function action(h, e, d) {
    var c = cm.getEventManager("副本_妖精学院_解救1");
    var b = c.getInstance("副本_妖精学院_解救1");
    var g = c.getMapFactoryMap(cm.getMapId());
    for (var a = 0; a < 20; a++) {
        var f = c.getMonster(3501006);
        b.registerMonster(f);
        g.spawnMonsterOnGroundBelow(f, new java.awt.Point(cm.rand(-800, 400), 180))
    }
    cm.sendOk("救命啊……那些怪物吓得我一动都不敢动！\r\n\r\n#b（消灭所有怪物后，再进行对话吧。）", 1500017);
    cm.dispose()
}

function start() {
    status = -1;
    action(1, 0, 0)
};